package com.zhz.livegoods.comment.mapper;

import com.zhz.livegoods.pojo.Comment;
import org.springframework.data.mongodb.core.query.Query;

import java.util.List;

/**
 * 商品评论数据访问层
 * @author zhz
 * @date 2020/08/05
 **/
public interface CommentMapper {
    //分页查询评论数据
    List<Comment> findCommentsByPage(Query query);
    //查询评论数量
    long countByQuery(String itemId);
}
